package demo1;

public class MyThead extends Thread {
    //重写run方法

    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(getName()+" "+i);
        }
    }
}
